{block name="circle_layout"}
	{include file="common:common_layout"}
{/block}
{extend name="common/layout" /}
{block name="style"}{/block}
{block name="content"}
<div class="base-layout">
  <div class="mainbox">
    <div class="base-tab-menu">
      <ul class="base-tabs-nav">
        <?php if(!empty($member_menu)){?>
        <?php foreach ($member_menu as $val){?>
        <li <?php if($val['menu_key'] == $menu_key){?>class="selected"<?php }?>><a href="<?php echo $val['menu_url'];?>"><?php echo $val['menu_name'];?></a></li>
        <?php }?>
        <?php }?>
      </ul>
    </div>
    <table class="base-table-style">
      <thead>
        <tr>
          <th class="w30"></th>
          <th class="tl">举报详情</th>
          <th class="w120">来自</th>
          <th class="w210">处理状态</th>
          <th class="w120">操作</th>
        </tr>
      </thead>
      <tbody>
        <?php if(!empty($inform_list)){?>
        <?php foreach ($inform_list as $val){?>
        <tr>
          <td><input type="checkbox" class="checkitem" name="i_id[]" value="<?php echo $val['inform_id'];?>" /></td>
          <td class="tl">
            <p><b>举报链接：</b><a href="<?php echo $val['url'];?>" target="_blank"><?php echo $val['title'];?></a></p>
            <p><b>举报内容：</b><?php echo $val['inform_content'];?></p>
          </td>
          <td><a href="{:url('circle/group/index',array('c_id'=>$val['circle_id']))}"><?php echo $val['circle_name'];?></a></td>
          <td>
            <p>处理状态：<?php echo $val['state'];?></p>
            <?php if($val['inform_state'] != 0){?>
            <p>处理经办：<?php echo $val['inform_opname'];?></p>
            <p>奖惩：<?php if($val['inform_opexp'] == '0'){ echo '无奖惩';}else{ echo $val['inform_opexp'].'经验';}?></p>
            <p>备注留言：<?php echo $val['inform_opresult'];?></p>
            <?php }?>
          </td>
          
          <td class="handle">
            <a href="javascript:void(0);" onclick="delinform(<?php echo $val['inform_id'];?>);">删除</a>
          </td>
        </tr>
        <?php }?>
        <?php }else{?>
        <tr>
          <td colspan="20" class="noborder"><p class="no-record">没有符合条件的记录</p></td>
        </tr>
        <?php }?>
      </tbody>
      <?php if(!empty($inform_list)){?>
      <tfoot>
        <tr>
          <th class="tc"><input id="all" class="checkall" type="checkbox" /></th>
          <th colspan="20"><label for="all" class="handle-btn"><i class="ac0"></i>全选</label>
            <a href="javascript:void(0);" class="handle-btn" nctype="batchbutton" uri="{:url('circle/pcenter/delinform')}?t=1" name="i_id" confirm="您确定要删除吗?" title="删除"><i class="ac5"></i>删除</a>
          </th>
        </tr>
        <tr><td colspan="20"><div class="pagination"><?php echo $show_page;?></div></td></tr>
      </tfoot>
      <?php }?>
    </table>
  </div>
  {include file="circle:circle:p_center_sidebar"}
</div>
<script src="__CIRCLE_RESOURCE__/js/circle_manage.js"></script>
<script type="text/javascript">
function delinform(i_id){
	showDialog('您确定要删除吗?', 'confirm', '', function(){
		_uri = "{:url('circle/pcenter/delinform')}?i_id="+i_id;
		ajaxget(_uri);
	});
}
</script>
{/block}